//
//  SmsCodeInputView.h
//  BaseProject
//
//  Created by 王洋 on 2021/1/20.
//  Copyright © 2021 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WGDigitField.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, SmsCodeInputActionType) {
    //获取验证码
    SmsCodeInputActionType_code,
    
    SmsCodeInputActionType_handleCode
};

@interface SmsCodeInputView : UIView

@property (nonatomic, strong) WGDigitField<WGDigitView<UIView *> *> *field;

@property (weak, nonatomic) IBOutlet UILabel *titleLab;

@property (weak, nonatomic) IBOutlet UIView *codeBGView;

@property (weak, nonatomic) IBOutlet UIButton *countDownBtn;

@property (nonatomic, copy) void(^SmsCodeInputViewBlock)(SmsCodeInputActionType type, NSString *text);

+ (CGFloat)calculateHeight;

@end

NS_ASSUME_NONNULL_END
